//
//  BuilderHelper.h
//  BehindTheMask
//
//  Created by Basuke on 08/03/16.
//  Copyright 2008 Basuke's. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kBuilderHelper_StandardTextFieldHeight	20.0
#define kBuilderHelper_SystemFontSize			14.0

@interface BuilderHelper : NSObject {
}

+ (UIButton *)buttonWithImage:(NSString *)imageName highlightImage:(NSString *)hiliteImageName at:(CGPoint)origin;
+ (UITextField *)urlFieldAt:(CGPoint)origin width:(CGFloat)width;
+ (UIWebView *)webViewWithMarginTop:(CGFloat)top;
+ (UIWebView *)webViewWithMargin:(UIEdgeInsets)inset;
+ (UILabel *)labelWith:(NSString *)aLabel at:(CGPoint)origin withFont:(UIFont *)font;
+ (UILabel *)labelWith:(NSString *)aLabel at:(CGPoint)origin;
+ (UILabel *)titleLabelWith:(NSString *)aLabel at:(CGPoint)origin;

@end

enum {
	kBuilderHelperAncherToLeftTop = 0,
	kBuilderHelperAncherToRightTop,
	kBuilderHelperAncherToLeftBottom,
	kBuilderHelperAncherToRightBottom,
	kBuilderHelperAncherCenter
};

@interface UIView(BuilderHelper)

- (UIView *)moveTo:(CGPoint)pt;
- (UIView *)moveTo:(CGPoint)pt anchor:(NSUInteger)anchorCorner;
- (CGPoint)rightBottom;

@property(readonly) CGPoint rightBottom;

@end

